<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="../public/jsp/headerScript.jsp" />
<title>Control Centre|Review Control</title>
<script type="text/javascript">
	function disp_confirm() {
		var flag = confirm("Are you sure to delete this review?");
		return flag;
	}
</script>
</head>
<body>
	<jsp:include page="../public/jsp/header_nav.jsp" />
	<div id="content">
		<div id="featured-wrap">
			<c:if test="${empty sessionScope.reviewList}">
				<article id="featured" class="clearfix">
					<div class="content-margin">
						<p>No review yet!</p>
					</div>
				</article>
			</c:if>
			<div id="featured-wrap">
				<article id="featured" class="clearfix">
					<div class="content-margin">
						<table border="1">
							<tr>
								<th>Title</th>
								<th>Content</th>
								<th>PostDate</th>
								<th>UserID</th>
								<th>GameID</th>
							</tr>
							<c:forEach var="i" items="${sessionScope.reviewList}"
								varStatus="theCount">
								<input type="hidden" name="id" value="${i.id}" />
								<tr>
									<td><c:out value="${i.title}"></c:out></td>
									<td><c:out value="${i.content}"></c:out></td>
									<td><c:out value="${i.postDate}"></c:out></td>
									<td><c:out value="${i.user_id}"></c:out></td>
									<td><c:out value="${i.game_id}"></c:out></td>
									<td><a
										href="control/reviewControl?id=${i.id}&amp;ctrl=review"
										onclick="return disp_confirm();">Delete</a></td>
								</tr>
							</c:forEach>
						</table>
					</div>
				</article>
			</div>
		</div>
	</div>
	<jsp:include page="../public/jsp/footer_nav.jsp" />
</body>
	</html>
</jsp:root>